<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search</title>
</head>
<body>

<c:if test="${ not empty sessionScope.user }">
	<a href="./LogoutController">Log out</a><br/>
</c:if>
<c:if test="${ empty sessionScope.user }">
	<a href="./login.jsp">Log in</a> <br>
	<a href="./register.jsp">Register</a><br/>
</c:if>
<a href="./HomeController">Home</a> <br/>

<form action="./SearchPhotosController" method="post" accept-charset="UTF-8">
	<table>
		<tr>
			<td><label for="title">Title</label></td>
			<td><input name="title" type="text"></td>
		</tr>
		
		<tr>
			<td><label for="description">Description</label></td>
			<td><input name="description" type="text"></td>
		</tr>
		
		<tr>
			<td><label for="name">Authors first name</label></td>
			<td><input name="name" type="text"></td>
		</tr>
		
		<tr>
			<td><label for="lastName">Authors last name</label></td>
			<td><input name="lastName" type="text"></td>
		</tr>
		
		<tr>
			<td><label for="tags">Tags (comma separated)</label></td>
			<td><input name="tags" type="text"></td>
		</tr>
		
		<tr>
			<td><label for="width">Width</label></td>
			<td><input name="width" type="number" min="0"></td>
		</tr>
		
		<tr>
			<td><label for="widthGreater">Greater that width</label></td>
			<td><input name="widthGreater" type="checkbox"></td>
		</tr>
		
		<tr>
			<td><label for="height">Height</label></td>
			<td><input name="height" type="number" min="0"></td>
		</tr>
		
		<tr>
			<td><label for="heightGreater">Greater that height</label></td>
			<td><input name="heightGreater" type="checkbox"></td>
		</tr>
		
		<tr>
			<td><label for="rating">Average rate</label></td>
			<td><input name="rating" type="number" step="0.1" min="0" max="10"></td>
		</tr>
		
		<tr>
			<td align="center"><input type="submit" value="Search"></td>
		</tr>

	</table>
</form>

</body>
</html>